Creating background matting in GIF and PNG images When you know the Web page background color on which an image will be displayed, you can use the matting feature to fill or blend transparent pixels with a matte color that matches the Web page background. The Web page background must be a solid color, not a pattern. The results of matting GIF and PNG-8 images depend on the Transparency option. If you select Transparency, only the partially transparent pixels, such as those at the edge of an anti-aliased image, are matted. When the image is placed on a Web page, the Web background shows through the transparent pixels, and the edges of the image blend with the background. This feature prevents the halo effect that results when an anti-aliased image is placed on a background color that differs from the image's original background. This feature also prevents the jagged edges that result with GIF hard-edged transparency. If you deselect Transparency, fully transparent pixels are filled with the matte color, and partially transparent pixels are blended with the matte color. ![]() GIF with Transparency option selected, and with Transparency option deselected To create a matted GIF or PNG image: 1 Open or create an image that contains transparency. 2 In the Optimize panel/palette, select GIF, PNG-8, or PNG-24 from the File Format menu. 3 For GIF and PNG-8 format, select of deselect the Transparency option as desired. 4 Select a color from the Matte pop-up menu: Optimizing Images for the Web > Making transparent and matted images > Creating background matting in GIF and PNG images |